<include file="Public:header" />
<div class="main">
    <div class="position"><p>您的当前位置：<a href="/">首页</a>  >  团购 </p></div>
    <div class="m_t_15 overflow_h">
        <div class="body_left">
            <div class="ask_list_t">
                <div class="body_title">
                    <ul>
                        <li><a href="{:U('Buying/index')}" <php>if(!$type){</php>class="selected" <php>}</php> >最新团购</a></li>
                        <li><a href="{:U('Buying/index',array('type'=>time))}"  <php>if($type){</php>class="selected" <php>}</php> >往期团购</a></li>
                    </ul>
                <span class="ask_show01_n2_sp">
                  <form id="Form" method="get">
                      <input type="hidden" name="m" value="Home">
                      <input type="hidden" name="c" value="Buying">
                      <input type="hidden" name="a" value="index">
                      <input type="hidden" name="alias" id="alias" value="{$alias}">
                  </form>
                  <select class="select04">
                      <option value="0">不限区域</option>
                      <volist name='house_cate' id='vo'>
                          <option <php>if($alias==$vo['alias']){</php>selected="selected"<php>}</php> value="{$vo.alias}">{$vo.name}</option>
                      </volist>
                  </select>
                </span>
                </div>
                <div class="group_body ">
                    <volist name='list' id='vo'>
                    <div class="group_body_01 overflow_h">
                        <span class="group_body_01_img"><a target="_blank" href="{:U('Buying/detail',array('id'=>$vo['id']))}"><img alt="{$vo.title}" src="{$vo.list_img}" width="458" height="278" /></a></span>
                        <div class="group_body_01_r">
                            <h2><a title="{$vo.title}" target="_blank" href="{:U('Buying/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h2>
                            <h3>{$vo.desc}</h3>
                            <h4>已有<B>{$vo.number}</B>人报名</h4>
                            <h5 class="overflow_h"><span class="group_body_01_r_sp">报名时间</span><i></i> <span class="group_body_01_r_sp org">{$vo.start_time|date='Y-m-d',###} 至 {$vo.end_time|date='Y-m-d',###}</span></h5>
                            <h6>{$vo.original_price} <span class="org">{$vo.present_price}</span></h6>
                            <p><span class="adl_list_sp3">
                                <php>if($vo['end_time'] > time()){</php>
                                <a href="javascript:;" request-url="{:U('Ajax/buying',array('id'=>$vo['house_id']))}" class="but37 pop_up">立即报名</a>
                                <php>}else{</php>
                                <a href="javascript:;"  style="background: #666666" class="but37">团购已过期</a>
                                <php>}</php>
                            </span></p>
                        </div>
                    </div>
                    </volist>
                    <div class="plastic_bottom_pages">
                        {$page}
                    </div>
                </div>
            </div>

        </div>
        <div class="body_right">
            <include file="Buying:right" />
        </div>
    </div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $(function(){
        $('.select04').change(function(){
            var alias = $(this).val();
            if(alias==0){
                window.location.href="{:U('Buying/index')}";
            }else{
                $("#alias").val(alias);
                $("#Form").submit();
            }
        });
    });
</script>
<include file="Public:footer" />